package com.tan.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "videocomment")
public class VideoComment implements java.io.Serializable {


    private ObjectId id; //主键id视频评论id
    private ObjectId VideoObjectId; //被评论视频id
    private Long created; //创建时间
    private Long userId;//评论用户id
    private Long vId;//被评论视频id
    private String content; //评论内容
    private Integer likeCount=0; //点赞数

}